import {commonParams} from "./config";

export function  getNearRestaurantsInfo(http,x,y,offset,orderBy) {

  const url = "http://localhost:8080/getNearRestaurants";

  const data = Object.assign({},commonParams,{
    latitude: x,
    longitude: y,
    offset: offset,
    order_by: orderBy
    // limit: 8,
    // extras: 'activities',
    // extras: 'tags',
    // extra_filters: 'home',
    // order_by: 1,
    // rank_id: '',
    // terminal: 'h5'
  })

  return http.get(url,{params:data});
}
